//TestLiczba

import junit.framework.TestCase;

public class TestLiczba extends TestCase {
        Liczba value;
       
        public void setUp() {
                value = new Liczba(16);
        }
       
        public void testConvert(){
                int result = Integer.parseInt(value.zapis( 15));
                System.out.println("konwersja(2, 4) na 2 = " + result);
               
                assertEquals(15, result);
                assertNotNull("Result is not null?", result);
        //      assertNull("Result is null?", result);
                assertFalse("Result of konwersja(4, 2) is 101?", result == 101);
                assertTrue("Result of konwersja(4, 2) is 100?", result == 10);
        }
       
        public void tearDown() {
                value = null;
        }

}

